package com.lai.gulimall.order.feign;

import com.lai.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient("gulimall-member")
public interface MemberFeignService {

    //查询用户收货地址
    @GetMapping("/member/memberreceiveaddress/{memberId}/addresses")
    R getReceiveAddressByMemberId(@PathVariable("memberId") Long memberId);

    //根据用户地址查询详情
    @RequestMapping("/member/memberreceiveaddress/info/{id}")
    R info(@PathVariable("id") Long id);

}
